<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
    <form th:action="@{/updateState}" method="get">
        <button type="submit">重新签到</button>
    </form>
    <p>未签到</p>
    <div style="border: black 1px solid;width: 400px">
        <span th:each="student:${studentList}" th:if="${student.state} eq 0" th:text="${student.name}+' '"></span>
    </div>
    <p>已签到</p>
    <div style="border: black 1px solid;width: 400px">
        <span th:each="student:${studentList}" th:if="${student.state} eq 1" th:text="${student.name}+' '"></span>
    </div>
</body>
</html>